// pinia独立维护
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate' //导入pinia持久化
const pinia = createPinia()
pinia.use(persist) //运用pinia持久化

export default pinia //导出pinia，给main.ts使用

// 仓库统一导出
import { useUserStore } from './modules/user'
export { useUserStore }
import { useAppStore } from './modules/app'
export { useAppStore }
import { useSettingStore } from './modules/setting'
export { useSettingStore }
// import * from './modules/user'// 接收所有user模块的按需导出，相当于上面两行
